/* Carousel area */
/* Carousel container */
.slide {
    position: relative;
    height: 450px;
    background-image: url(../images图片库/背景图/背景1.2\ .jpg);
    background-size: contain;
    background-repeat: repeat;
    /* Align from the left edge, vertically centered */
    background-position: left center;
}

.slide .container {
    position: absolute;
    left: 50%;
    top: 50.5%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 430px;
    padding: 50px;
    background-color: #FFFFFF;
    box-shadow: 0 30px 50px gray;
}

.slide .container #slide {
    width: max-content;
    margin-top: 50px;
}

/* Carousel image group */
.slide .item {
    width: 150px;
    height: 150px;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
    position: absolute;
    z-index: 1;
    top: 75%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px gray;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    left: 0;
    top: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
    box-shadow: none;
}

.slide .item:nth-child(3) {
    left: 60%;
}

.slide .item:nth-child(4) {
    left: calc(60% + 160px);
}

.slide .container .item:nth-child(5) {
    left: calc(60% + 330px);
}

.slide .container .item:nth-child(n+6) {
    left: calc(60% + 440px);
    opacity: 0;
}

.slide .container .item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    padding: 0;
    color: #eee;
    transform: translate(0, -50%);
    display: none;
    /* font-family: system-ui; */
}

.slide .container .item:nth-child(2) .content {
    display: block;
    z-index: 11111;
}

.slide .container .item .name {
    font-size: 50px;
    font-weight: 400;
    font-family: "STXingkai";
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: showcontent 1s ease-in-out 1 forwards;
}

.slide .container .item button {
    padding: 10px 20px;
    border: none;
    opacity: 0;
    animation: showcontent 1s ease-in-out 0.6s 1 forwards;
}

@keyframes showcontent {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to {
        opacity: 1;
        transform: translate(0, 0);
        filter: blur(0);
    }
}

/* Carousel button area */
.slide .container .buttons {
    position: absolute;
    bottom: 30px;
    z-index: 222222;
    text-align: center;
    width: 100%;
}

.slide .container .buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0px 0px 12px gray;
    transition: 0.5s;

    color: white;
    font-weight: 400;
    font-size: 24px;
}

.slide .container .buttons button:hover {
    font-weight: 700;
    font-size: 32px;
}

.dian {
    padding: 20px;
    margin: 15px auto;
    background-image: url('../images图片库/背景图/背景1.1\ .jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

/* Tourist Attractions area */
.hd {
    margin-top: 15px;
    /* margin-bottom: 5px; */
    height: 60px;
    line-height: 60px;
    display: flex;
    justify-content: space-between;
}

/* Tourist Attractions title area */
.hd h3 {
    font-family: "STXingkai";
    font-size: 42px;
    font-weight: 400;
    color: black;
    text-shadow: 4px 4px 4px rgb(255, 255, 255),
        /* Main shadow */
        -6px -6px 6px gray;
    /* Reverse shadow */
    display: flex;
}

.hd .more {
    font-size: 14px;
    font-weight: 700;
    color: gray;
}

.hd .more:hover {
    font-size: 15px;
    color: orange;
}

/* Tourist Attractions block area */
.bd ul {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

/* Format for individual blocks */
.bd ul li {
    /* Each li occupies 25% of the width, displaying four per row */
    flex: 0 0 25%;
    /* Include padding and border in width calculation */
    box-sizing: border-box;
    /* Add padding */
    padding: 10px;
    /* background-color: gray; */
    margin-top: 10px;
}

/* Add hover animation effect for blocks */
.bd ul li a {
    display: block;
    box-shadow: 0 0 5px #000;
    /* transition:none; */
    transition: transform 0.5s ease-in-out;
}

.bd ul li a:hover {
    box-shadow: 2px 2px 12px black;
    /* transition:none; */
    transform: translateX(4px) translateY(-4px);
}

/* Tourist Attractions image area */
.bd ul li .pic {
    height: 280px;
}

.bd ul li .pic img {
    height: 100%;
    width: 100%;
}

/* Tourist Attractions text area */
.bd ul li .text {
    height: 115px;
    background-color: #fff;
    padding: 20px;
}

.bd ul li .text h4 {
    margin-bottom: 13px;
    height: 40px;
    line-height: 20px;
    font-size: 18px;
    font-weight: 400;
}

.bd li .text p {
    font-size: 13px;
    color: #999;
}

.bd li .text p .bd_span {
    color: orange;
}


/* History and Culture area */
.bd {
    display: flex;
    justify-content: space-around;
}

/* History and Culture title navigation area */
.myfood .hd ul {
    display: flex;
}

.hd ul li {
    margin-right: 60px;
    font-size: 16px;
}

.myfood .hd ul li a {
    padding: 2px;
    cursor: default;
}

.hd ul li .active {
    font-weight: 700;
    padding: 10px;
    text-shadow: 4px 4px 4px gray,
        /* Main shadow */
        -6px -6px 6px white;
    /* Reverse shadow */
}

/* History and Culture display area */
.myfood .bd {
    display: none;
}

.myfood .bd_active {
    display: flex;
}

/* Common style for History and Culture */
/* Left side */
.bd .Left {
    margin-top: 10px;
    width: 300px;
    height: 422px;
}

.bd .Left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-right: 12px;
}

/* Right side */
.bd .Right {
    margin-top: 10px;
    height: 422px;
    width: 952px;
}

.bd .Right .top {
    height: 200px;
    width: 950px;
}

.bd img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd .Right .bottom P {
    font-size: 15px;
    line-height: 1.6;
    /* Justify text */
    text-align: justify;
    /* Paragraph spacing */
    margin: 15px 0;
    /* Indent first line */
    text-indent: 2em;
    /* Use Kai font or Kai-style font */
    /* font-family: "STXingkai", "KaiTi", serif; */
    color: #333;
}

/* Vertical layout */
.playY {
    display: flex;
    flex-direction: column;
}

/* Top and Bottom areas */
.bd .Top,
.bd .Bottom {
    margin: 10px auto 0 auto;
    width: 1200px;
    height: 220px;
    display: flex;
}

.bd .Top .right,
.bd .Bottom .left {
    height: 220px;
    width: 400px;
    /* background-color: gray; */
}

.bd .Top .left,
.bd .Bottom .right {
    /* padding: 1px; */
    height: 220px;
    width: 800px;
    /* background-color: pink; */
}

.bd .Top p,
.bd .Bottom p {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    /* Justify text */
    text-align: justify;
    /* Paragraph spacing */
    margin: 20px 0;
    /* Indent first line */
    text-indent: 2em;
    /* Use Kai font or Kai-style font */
    /* font-family: "STXingkai", "KaiTi", serif; */
    color: #333;
}